import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //获取基础物料下拉列表数据
  GetGoodsDataList(data?: any) {
    return request({
      url: '/api/Warehouse/GetGoodsDataList',
      method: 'post',
      data,
    });
  },
  //获取匹配的库存物料数据列表
  GetMatchStockGoodsDataList(data?: any) {
    return request({
      url: '/api/Warehouse/GetMatchStockGoodsDataList',
      method: 'post',
      data,
    });
  },
  //获取匹配的可用仓库列表数据
  GetMatchWarehouses(data?: any) {
    return request({
      url: '/api/Warehouse/GetMatchWarehouses',
      method: 'post',
      data,
    });
  },
  //查询盘点时根据仓库获取盘点库存物料列表数据
  QueryMatchPanDianStockGoodsList(data?: any) {
    return request({
      url: '/api/Warehouse/QueryMatchPanDianStockGoodsList',
      method: 'post',
      data,
    });
  },
  //分页获取成品/半成品报废申请单列表数据
  GetMatchPageFinishedProductScrapBills(data?: any) {
    return request({
      url: '/api/Warehouse/GetMatchPageFinishedProductScrapBills',
      method: 'post',
      data,
    });
  },
  //获取成品/半成品报废申请单明细数据
  GetFinishedProductScrapBillDetail(data?: any) {
    return request({
      url: '/api/Warehouse/GetFinishedProductScrapBillDetail',
      method: 'post',
      data,
    });
  },
  //新建成品/半成品报废申请单
  CreateNewFinishedProductScrapBill(data?: any) {
    return request({
      url: '/api/Warehouse/CreateNewFinishedProductScrapBill',
      method: 'post',
      data,
    });
  },
  //修改成品/半成品报废申请单
  UpdateFinishedProductScrapBill(data?: any) {
    return request({
      url: '/api/Warehouse/UpdateFinishedProductScrapBill',
      method: 'post',
      data,
    });
  },
  //删除成品/半成品报废申请单
  DeleteFinishedProductScrapBill(data?: any) {
    return request({
      url: '/api/Warehouse/DeleteFinishedProductScrapBill',
      method: 'post',
      data,
    });
  },
  //确认成品/半成品报废单
  SureFinishedProductScrapBill(data?: any) {
    return request({
      url: '/api/Warehouse/SureFinishedProductScrapBill',
      method: 'post',
      data,
    });
  },
  //红冲成品/半成品报废单
  RedStrikeFinishedProductScrapBill(data?: any) {
    return request({
      url: '/api/Warehouse/RedStrikeFinishedProductScrapBill',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
